//
//  DiscountMoreHot_areaModel.m
//  AroundTheWorld
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import "DiscountMoreHot_areaModel.h"
#import "DiscountMoreHot_areaPlaceModel.h"
#import "DiscountMoreHot_areaListModel.h"

@implementation DiscountMoreHot_areaModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)setPlace:(NSMutableArray *)place
{
    _place = place;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _place) {
       DiscountMoreHot_areaPlaceModel *model = [[DiscountMoreHot_areaPlaceModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }
    _place = [NSMutableArray arrayWithArray:array];
}

- (void)setList:(NSMutableArray *)list
{
    _list = list;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _list) {
        DiscountMoreHot_areaListModel *model = [[DiscountMoreHot_areaListModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }
    _list = [NSMutableArray arrayWithArray:array];
}

@end
